// ActionScript file
package com.tongji.housediy.view.titlewindows
{
	import com.tongji.housediy.events.UserLoadandRegisterEvent.LoginEvent;
	import com.tongji.housediy.events.UserLoadandRegisterEvent.UserRegisterEvent;
	import com.tongji.housediy.events.houseEvent.OpenHouseEvent;
	import com.tongji.housediy.model.UserInforModel;
	import com.tongji.housediy.utils.PopUpAdmin;
	
	import flash.events.MouseEvent;
	import flash.net.SharedObject;
	import flash.ui.Mouse;
	
	import mx.binding.utils.BindingUtils;
	import mx.controls.Alert;
	import mx.managers.PopUpManager;
	
	import org.robotlegs.mvcs.Mediator;
	
	import spark.events.IndexChangeEvent;
	
	public class FindPassWordTitleWindowMediator extends Mediator
	{		
		[Inject]
		public var view:FindPassWordTitleWindow;
		
		public function FindPassWordTitleWindowMediator()
		{
			super();
		}
		public override function onRegister():void
		{
			view.closeBtn.addEventListener( MouseEvent.CLICK, closeBtnHandler);
			view.bigCloseBtn.addEventListener( MouseEvent.CLICK, bigCloseBtnHandler);
		}
		public function closeBtnHandler(event:MouseEvent):void
		{
			PopUpManager.removePopUp(view);
			mediatorMap.removeMediatorByView(view);
		}
		public function bigCloseBtnHandler(event:MouseEvent):void
		{
			PopUpManager.removePopUp(view);
			mediatorMap.removeMediatorByView(view);
		}
	}
}